import Route from 'react-router/lib/Route'
import { WeaLocaleProvider } from 'ecCom'
import Home from './components/Home'
import Test from './components/Test'
import Portal from './components/Portal'
import InteTabList from './components/InteTabList';
import stores from './stores/index'

import './style/index'

const getLocaleLabel = WeaLocaleProvider.getLocaleLabel.bind(this, 'inte');

const coworkRoute = (
  <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@w0ppqm`} path="inte" onEnter={getLocaleLabel} component={Home}>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@qzygae`} name="accountsetting" path="setting/:path" component={Test}/>
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@5fvmkc`} path="portal/:eid/:tabId" component={Portal} />
    <Route ecId={`${this && this.props && this.props.ecId || ''}_Route@igalqm`} path="tab/:showTypeId" component={InteTabList} />
  </Route>
)

module.exports = {
  Route: coworkRoute,
  store: stores
}
